Page({
  data: {
      showActionsheet: false,
      dialogShow: false,
      buttons: [{text: '取消'}, {text: '确定'}],
  },
  close: function () {
      this.setData({
          showActionsheet: false
      })
  },
  openConfirm: function () {
    this.setData({
        dialogShow: true
    })
},
tapDialogButton(e) {
  console.log(e.detail.index);
    this.setData({
        dialogShow: false,
        showOneButtonDialog: false
    })
    if(e.detail.index==1){
      wx.navigateBack({
        delta: 0,
      })
    }
},
  btnClick(e) {
      console.log(e)
      this.close()
  },
  renyuan(){
    this.setData({
      showActionsheet:true
    })
  }
})